package  
{
	/**
	 * ...
	 * @author Lucas Mello
	 */
	public class PlayerData
	{
		public static var hasImposto1:Boolean = false;
		public static var hasImposto2:Boolean = false;
		public static var hasImposto3:Boolean = false;
		public static var hasPropina1:Boolean = false;
		public static var hasPropina2:Boolean = false;
		public static var hasPropina3:Boolean = false;
		public static var hasCensura1:Boolean = false;
		public static var hasCensura2:Boolean = false;
		public static var hasCensura3:Boolean = false;
		
		public static var won:Boolean = false;
		
		public static var hasSaidaPrisao:Boolean = false;
		public static var equipedSaidaPrisao:Boolean = false;
		public static var hasAcessorImprensa:Boolean = false;
		public static var equipedAcessorImprensa:Boolean = false;
		
		public static var shopUnlocked:Boolean = false;
		
		public static var dinheiro_atual:int = 9999000;
		public static var dinheiro_total:int;
		public static var dinheiro_lastSprint:int;
		
		public static var highscore:int;
		
		// não sei se é assim a ordem não...
		public static var levelNames:Array = ["Mayor", "Congressman", "Senator", "Governor", "President"];
		public static var levelPrices:Array = [0, 2600, 6000, 14000, 25000];
		public static var level:int=0;
		
		public function PlayerData() 
		{
		}
		
		public static function EquiparSaidaPrisao():void
		{
			equipedSaidaPrisao = true;
			equipedAcessorImprensa = false;
		}
		
		public static function EquiparAcessorImprensa():void
		{
			equipedSaidaPrisao = false;
			equipedAcessorImprensa = true;
		}
		
		public static function Comprou(nome:String):void
		{
			if (nome == "Raise Taxes 1")
				hasImposto1 = true;
			else if (nome == "Raise Taxes 2")
				hasImposto2 = true;
			else if (nome == "Raise Taxes 3")
				hasImposto3 = true;
			else if (nome == "Bribe 1")
				hasPropina1 = true;
			else if (nome == "Bribe 2")
				hasPropina2 = true;
			else if (nome == "Bribe 3")
				hasPropina3 = true;
			else if (nome == "Censorship 1")
				hasCensura1 = true;
			else if (nome == "Censorship 2")
				hasCensura2 = true;
			else if (nome == "Censorship 3")
				hasCensura3 = true;
				
			else if (nome == "Jail Breaker")
				hasSaidaPrisao = true;
			else if (nome == "Press Advisor")
				hasAcessorImprensa = true;
		}
	}
}